import request from '@/utils/request'

export function getHotPoint(token) {
    return request({
        url: '/vue-admin-template/index/list',
        method: 'get',
        params: { token }
    })
}
// 聚合数据api-查询当年节假日
export function getHolidayAll(date){
    return request({
        url: '/calendar/year',
        methods: 'get',
        params: {
            key:'2e04aae4dcf64b007c4c91d8f8285042',
            year:date
        }
    })
}

// 聚合数据api-查询近期假期
export function getHolidayDetail(date){
    return request({
        url: '/calendar/month',
        methods: 'get',
        params: {
            key:'2e04aae4dcf64b007c4c91d8f8285042',
            'year-month':date
        }
    })
}